//
//  YHEmotionModel.swift
//  XLWB
//
//  Created by key on 16/7/5.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class YHEmotionModel: NSObject {

    //转模属性
    //表情描述
    var chs: String?
    
    //表情图片名
    var png: String?
    
    //emoji表情 十六进制 字符串
    var code: String?
    
    //emoji表情 和 图片表情的判断标志
    var type: String? {
        
        didSet {
            
            if type == "0" {
                
                isEmoji = false
            }else {
                
                isEmoji = true
            }
        }
    }
    
    //定义bool属性 决定是emoji 还是图片表情
    var isEmoji: Bool = false
    
    //路径
    var path: String?
    
    //kvc
    init(dict: [String: AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
    
    
    
}
